package com.weblearning.tliasweb.mapper;

import com.weblearning.tliasweb.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface EmpMapper {

//    @Select("select count(*) from emp")
//    public long count();
//
//    @Select("select * from emp limit #{start},#{pageSize}")
//    public List<Emp> page(Integer start,Integer pageSize);


    public List<Emp> list(String name, short gender, LocalDate begin, LocalDate end);


    void delete(List<Integer> ids);

    void insert(Emp emp);

    Emp getById(Integer id);

    void update(Emp emp);

    Emp getByUsernameAndPassword(Emp emp);

    void deleteByDeptId(Integer id);
}
